﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<div id="logindisplay">
<%
    if (Request.IsAuthenticated) {
%>
        You are logged as <b><%: Page.User.Identity.Name %></b> | 
         <%: Html.ActionLink("Log Off", "LogOff", "Account") %> | 
         <%: Html.ActionLink("My Settings", "Settings", "User") %>
<%
    }
    else {
%> 
         You are not logged on | <%: Html.ActionLink("Log On", "LogOn", "Account") %> 
<%
    }
%>
</div>